\hypertarget{mathutil_8cpp}{
\section{src/mathutil.cpp File Reference}
\label{mathutil_8cpp}\index{src/mathutil.cpp@{src/mathutil.cpp}}
}
{\tt \#include \char`\"{}mathutil.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hyperlink{structtag_v_e_c_t_o_r2_d_f}{VECTOR2DF} \hyperlink{mathutil_8cpp_a1e6f1178b409d5cbf0ccc8f92c7efd3}{closest\_\-pnt\_\-on\_\-line} (\hyperlink{structtag_v_e_c_t_o_r2_d_f}{VECTOR2DF} vECTOR2DF, \hyperlink{structtag_l_i_n_e2_d_f}{LINE2DF} lINE2DF)
\end{CompactItemize}


\subsection{Function Documentation}
\hypertarget{mathutil_8cpp_a1e6f1178b409d5cbf0ccc8f92c7efd3}{
\index{mathutil.cpp@{mathutil.cpp}!closest\_\-pnt\_\-on\_\-line@{closest\_\-pnt\_\-on\_\-line}}
\index{closest\_\-pnt\_\-on\_\-line@{closest\_\-pnt\_\-on\_\-line}!mathutil.cpp@{mathutil.cpp}}
\subsubsection[{closest\_\-pnt\_\-on\_\-line}]{\setlength{\rightskip}{0pt plus 5cm}{\bf VECTOR2DF} closest\_\-pnt\_\-on\_\-line ({\bf VECTOR2DF}, \/  {\bf LINE2DF})}}
\label{mathutil_8cpp_a1e6f1178b409d5cbf0ccc8f92c7efd3}


determines the closest point on a line to a given point \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em VECTOR2DF}]the given point \item[{\em LINE2DF}]the given line \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the point on the line that is closest to the given point \end{Desc}
